import SubMenuItem from "./SubMenuItem.vue"
import MainMenuItem from "./MainMenuItem.vue"
export function hasChildren(data) {
    return data && data.children && data.children.length > 0
}

export function comps(data) {
    return hasChildren(data) ? SubMenuItem : MainMenuItem;
}

export default { hasChildren, comps }
